package com.sbxBase.dubbo;

import com.sbxBase.service.UserService;
import com.common.dubbo.sbxBase.UserRPC;
import com.common.entity.sbxBase.User;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class UserRPCImpl implements UserRPC {

    @Resource
    private UserService userService;

    @Override
    public User getUserInfoBySession(String sessionId) {
        return userService.getUserBySessionTokenId(sessionId);
    }


}
